#pragma once

#include "NFServerComm/NFServerCommon/NFIDescStore.h"
#include "NFServerComm/NFServerCommon/NFIDescTemplate.h"
#include "NFLogicCommon/NFDescStoreMacrosDefine.h"
#include "NFLogicCommon/NFDescStoreTypeDefines.h"
#include "E_RoleInit.nanopb.h"
#ifndef MAX_ROLEINIT_INFO_NUM
#define MAX_ROLEINIT_INFO_NUM 30
#endif

class RoleInitInfoDesc : public NFI_DESC_TEMPLATE_MACRO(RoleInitInfoDesc, E_RoleInitInfo, EOT_CONST_ROLEINIT_INFO_DESC_ID, MAX_ROLEINIT_INFO_NUM)
public:
	RoleInitInfoDesc();
	virtual ~RoleInitInfoDesc();
	int CreateInit();
	int ResumeInit();
public:
	int Load(NFResDb *pDB) override;
	int LoadDB(NFResDb *pDB) override;
	int CheckWhenAllDataLoaded() override;
};
